﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LL.Common
{
    public enum SortOrder
    {
        Desc = 1,
        Asc = 0,
    }

    public static class SortOrderExtensions
    {
        public static SortOrder ParseAsSortOrder(this string sortOrder)
        {
            return sortOrder.ToUpper()
                .Equals("DESC") ? SortOrder.Desc : SortOrder.Asc;
        }
    }
}
